<template>
  <w-view>
    <layout-property :w="w" />
  </w-view>
</template>

<script>
  import $ from 'dfish-widget'
  import Widget from '../Widget.vue'

  export default {
    mixins: [Widget],
    data() {
      return {
        name: 'Img',
        remark: '图片',
        extends: [],
        attrs: [{
          name: 'src',
          type: 'String',
          remark: '图片地址',
          option: 'URL字符串，或以<var>.</var><var>#</var>开头的样式名',
        }, {
          name: 'square',
          type: 'Boolean',
          remark: '设为true, 图片总是以正方形显示',
          option: '',
          default: '',
        }, {
          name: 'vertical',
          type: 'Boolean',
          remark: '图片文本是否纵向排列',
          default: 'true',
        }],
        slots: [
          {
            name: 'default',
            remark: '显示内容',
            option: ''
          }

        ]
      }
    }
  }
</script>

<style>
</style>
